﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LPPA.Facturacion.UI.UserControls
{
	public partial class ucHeader : System.Web.UI.UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{
            var currentUrl = Request.Url.AbsolutePath;

            if (currentUrl.Contains("Medidores"))
            {
                hiddenCurrentMenu.Value = "Medidores";
                pnlMedidores.Visible = true;
            }
            else if (currentUrl.Contains("Titulares"))
            {
                hiddenCurrentMenu.Value = "Titulares";
                pnlTitulares.Visible = true;
            }
            else
            {
                hiddenCurrentMenu.Value = "Home";
                pnlHome.Visible = true;
            }
		}
	}
}